package com.zut.hospital.service.staff;

import com.zut.hospital.dao.staff.OfficeMapper;
import com.zut.hospital.entity.staff.Office;
import com.zut.hospital.entity.staff.OfficeExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 侯捷
 * @package_name com.zut.hospital.service.staff
 * @date 2019/5/30 14:02
 * @description
 */
@Service
public class officeServiceImpl implements officeService {
    @Autowired
    OfficeMapper officeMapper;

    @Override
    public List<Office> getAllOffice(){
        OfficeExample officeExample=new OfficeExample();
        OfficeExample.Criteria criteria=officeExample.createCriteria();
        return officeMapper.selectByExample(officeExample);
    }

}
